package com.srit.recipes.service;

import com.srit.recipes.common.response.JpaPage;
import com.srit.recipes.entity.RecipesInfo;
import com.srit.recipes.entity.WeekRecipes;
import com.srit.recipes.entity.WeekRecipesDetail;

import java.io.IOException;
import java.util.List;

public interface RecipesService {
    List<WeekRecipesDetail> recommend(int type) throws IOException;

    WeekRecipes currentRecipes(int id);

    WeekRecipes saveRecommend(List<WeekRecipesDetail> weekRecipes, int type);

    JpaPage recipesHistory(JpaPage jpaPage, WeekRecipes weekRecipes);

    WeekRecipesDetail addOrUpdateDetail(WeekRecipesDetail recipesDetail);

    WeekRecipes addOrUpdateWeekRecipes(WeekRecipes weekRecipes);

    boolean deleteWeekRecipes(int id);

    boolean deleteWeekRecipesDetail(int id);

    List<RecipesInfo> recipesList(String key, JpaPage page);

    Object submitRecipesExamine(int id);

    Object recipesExamine(WeekRecipes id);

    Object recipesExamineList(JpaPage jpaPage);

    Object recipesExaminePass(JpaPage jpaPage);
}
